package com.serverclient.jdk.service;

import java.util.Map;

import com.ning.http.client.Response;
import com.serverclient.jdk.annotation.HttpMethod;
import com.serverclient.jdk.annotation.HttpServer;

/**
 * 接口调用类
 */
@HttpServer(beanName="serverJdkService")
public interface ServerJdkService {
	/**
	 * 根据手机号获取用户信息
	 * @param phoneNumber
	 * @return
	 */
	@HttpMethod(scheme=HttpServer.Scheme.HTTP,server="127.0.0.1",port=9011,uri="/getUserInfo.do",method=HttpServer.Method.GET)
	public Response getUserInfo(Map<String,String> params,Map<String, String> header);
	
	/**
	 * 添加用户信息
	 * @param phoneNumber
	 * @return
	 */
	@HttpMethod(scheme=HttpServer.Scheme.HTTP,server="127.0.0.1",port=9011,uri="/addUserInfo.do",method=HttpServer.Method.POST)
	public Response addUserInfo(Object userInfo,Map<String, String> header);
}
